use std::io;

fn main() {
    let mut input = String::new();
    let _  = std::io::stdin().read_line(&mut input).unwrap();
    let mut parts = input.split_whitespace();
    let m = parts.next().unwrap().parse::<usize>().unwrap();
    let n = parts.next().unwrap().parse::<usize>().unwrap();
}